#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

command="/usr/bin/bopm"
description="Blitzed Open Proxy Monitor"
start_stop_daemon_args="--quiet --chuid ${BOPM_UID}"
pidfile="${PIDFILE}"

depend() {
	need net
}

start_pre() {
	checkpath -o 0:0 -d /run/bopm
	checkpath -o ${BOPM_UID} -d /run/bopm/junk
	checkpath -o ${BOPM_UID} -f /run/bopm/junk/bopm.pid
}
